
<form id="form_add">
<table>
	<tr>
		<td width="20%" align="right">负责人：</td>
		<td width="30%"><input type="text" name="emp" id="emp" value="{[$result.emp]}:{[$result.emp_t]}" size="12" title="{[$t.emp_|emp:'借款人']}"> <input
			type="checkbox" name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}"> 自己</td>
	
		<td width="20%" align="right">日期：</td>
		<td width="30%"><input type="text" name="date" id="date" size="12" value="{[$smarty.now|date_format:'%Y-%m-%d']}"></td>
	</tr>
	<tr>
		<td align="right">银行：</td>
		<td colspan="3"><select name='bank' id='bank'>
			{[html_options options=$bank_option selected=$result.bank]}
		</select><select name='account' id='account'>
			{[html_options options=$account_option selected=$result.account]}
		</select></td>
	</tr>
	<tr>
		<td align="right">付款金额：</td>
		<td colspan="3"><input type="text" name="from_amount" id="from_amount" size="12" value="{[$result.from_amount]}"><select name='from_currency' id='from_currency'>
			{[html_options options=$currency_option selected=$result.from_currency]}
		</select><label id="label_from_amount"></label></td>
	</tr>
	<tr>
		<td align="right">汇率：</td>
		<td colspan="3"><input type="text" name="rate" id="rate" size="12" value="{[$result.rate]}"></td>
	</tr>
	<tr>
		<td align="right">入帐金额：</td>
		<td colspan="3"><input type="text" name="to_amount" id="to_amount" size="12" value="{[$result.to_amount]}"><select name='to_currency' id='to_currency'>
			{[html_options options=$currency_option selected=$result.to_currency]}
		</select><label id="label_to_amount"></label></td>
	</tr>	
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="4" name="content" id="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
	<tr>
		<td align="right">状态：</td>
		<td colspan="3"><select name='status'>
			{[html_options options=$status_option selected=$result.status]}
		</select></td>
	</tr>
</table>
</form>

<script type="text/javascript" src="js/finance/convert/add.js?r={[$smarty.now]}"></script>

<script type='text/javascript'>
_from();
_to();
</script>
